import {request} from '@/utils/request'
export function getUserList(params) {
    return request({
        url: '/api/fizz-manager/blade-user/page',
        method: 'get',
        params
    })
}
export function getPostSelect(params) {
    return request({
        url: '/api/fizz-manager/blade-system/post/select',
        method: 'get',
        params
    })
}
export function getDeptTree() {
    return request({
        url: '/api/fizz-manager/blade-system/dept/tree',
        method: 'get',
    })
}
export function getRoleTree() {
    return request({
        url: '/api/fizz-manager/blade-system/role/tree',
        method: 'get',
    })
}
export function saveUser(data) {
    return request({
        url: '/api/fizz-manager/blade-user/submit',
        method: 'post',
        data
    })
}
export function resetPassword(userIds) {
    return request({
        url: '/api/fizz-manager/blade-user/reset-password?userIds='+userIds,
        method: 'post',
    })
}
export function saveRole(userIds,roleIds) {
    return request({
        url: '/api/fizz-manager/blade-user/grant?userIds='+userIds+'&roleIds='+roleIds,
        method: 'post',
    })
}
export function remove(ids) {
    return request({
        url: '/api/fizz-manager/blade-user/remove?ids='+ids,
        method: 'post',
    })
}
